<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 7 Mei 2012 16:07:45
 *
 * 
 */
$bulan = array(
			1 => 'Januari',
			2 => 'Februari',
			3 => 'Maret',
			4 => 'April',
			5 => 'Mei',
			6 => 'Juni',
			7 => 'Juli',
			8 => 'Agustus',
			9 => 'September',
			10 => 'Oktober',
			11 => 'November',
			12 => 'Desember',
		);
$thn = date("Y");
$thnlalu = $thn - 50;
for($k = $thn; $k >= $thnlalu; $k--)
{
	$thnlist[$k] = $k;
}
?>
<script type="text/javascript">
$(document).ready(function() {
	$('.pengalaman').hide();
	$('.level').live('change', function(){
		var lvl = $(this).val();
		if(lvl != "")
		{
			if(lvl == 1)
			{
				$('.pengalaman').show();
			}
			else
			{
				$('.pengalaman').hide();
			}
		}
	});
	
});
</script>

	<div class="row">
    	<div class="span8">

                	<?php echo Form::open(URL::base().'pengalaman/save', array('class' => 'form-horizontal'));?>
                	<fieldset class="level">
                		<legend>Level Pengalaman</legend>
                         <div class="control-group">
                        	<label class="control-label" for="Bidang">Level Pengalaman</label>
                        	<div class="controls">
                        		<label class="radio">
                        			<input type="radio" name="levelpengalaman" value="3" class="level" />Masih Sekolah / Kuliah
                        		</label>
                        		<label class="radio">
                        			<input type="radio" name="levelpengalaman"  value="2" class="level" />Fresh Graduate
                        		</label>
                        		<label class="radio">
                        			<input type="radio" name="levelpengalaman"  value="1" class="level" />Sudah Pernah Bekerja, Jelaskan mulai perusahaan terakhir ( 3 Perusahaan bila ada )
                        		</label>
                        	</div>
                        </div>
                	</fieldset>
                    <fieldset class="pengalaman" style="">
						<legend>3 Pengalaman terakhir</legend>
                        <div class="control-group">
                        	<label class="control-label" for="Bidang">Pengalaman dibidang</label>
                        	<div class="controls">
                        	<?php echo Form::select('mstbidang_id', $bidanglist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                         <!--<div class="control-group">
                         	<label class="control-label" for="Industri">Industri</label>
                         	<div class="controls">
                        	<?php echo Form::select('mstindustri_id', $industrilist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label" for="spesialisai">Spesialisasi</label>
                        	<div class="controls">
                        	<?php echo Form::select('mstspesialisasi_id', $spesialisasilist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>-->
                        <div class="control-group">
                        	<label class="control-label" for="Posisi">Jabatan Terakhir</label>
                        	<div class="controls">
                        	<?php echo Form::select('mstposisi_id', $posisilist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label" for="Dari">Dari</label>
                        	<div class="controls">
                        	<?php echo Form::select('dr_bulan', $bulan, '', array('class' => 'input-small'))?> <?php echo Form::select('dr_tahun', $thnlist, '', array('class' => 'input-small'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label" for="Dari">Hingga</label>
                        	<div class="controls"> 
                        		<?php echo Form::select('sp_bulan', $bulan, '', array('class' => 'input-small'))?> <?php echo Form::select('sp_tahun', $thnlist, '', array('class' => 'input-small'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                          	<label class="control-label" for="Institusi">Institusi / Perusahaan</label> 
                          	<div class="controls">
                          		<?php echo Form::input('institusi', '', array('class' => 'input-medium'))?>
                          		</div>
                          </div>
                        <div class="control-group">
                        	<label class="control-label" for="Alamat">Alamat Institusi / Perusahaan</label>
                        	<div class="controls">
                        	<?php echo Form::input('alamat_institusi', '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                       <!-- <div class="control-group">
                        	<label class="control-label" for="Contact">Referensi</label>
                        	<div class="controls">
                        	<?php echo Form::input('cp', '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>-->
                        <div class="control-group">
                        	<label class="control-label" for="Gaji">Gaji Terakhir</label>
                        	<div class="controls">
                        	<?php echo Form::input('gaji', '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                          <div class="control-group">
                        	<label class="control-label" for="Gaji">Alasan pengunduran diri</label>
                        	<div class="controls">
                        	<?php echo Form::input('gaji', '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                          <div class="control-group">
                        	<label class="control-label" for="Gaji">Jumlah bawahan</label>
                        	<div class="controls">
                        	<?php echo Form::input('gaji', '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                          <div class="control-group">
                        	<label class="control-label" for="Gaji">Deskripsi tugas dan tanggungjawab</label>
                        	<div class="controls">
                        	<?php echo Form::textarea('deskripsi', '', array())?>
                       
                        	</div>
                        </div>

                    </fieldset>
                    <fieldset>
                         <div class="form-actions">
                             <button class="btn btn-primary" type="submit">Save</button>
                             <button class="btn btn-primary">Cancel</button>
                        </div>                   
                    </fieldset>
                  <?php echo Form::close()?>   	
    	</div>
    </div>
